package com.msc.common.lang.exception;

/**
 * @author masc
 * @date 2022/6/18 8:50
 * <p>自定义异常</p>
 */
public class CiliciliException extends RuntimeException {
    private String message;
    private Integer code;

    public CiliciliException(ICiliciliErrorCode errorCode) {
        this.code = errorCode.getCode();
        this.message = errorCode.getMessage();
    }

    @Override
    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

}
